<template>
	<view>
		<view :style="{'width':'100%','background':'#f5f5f5','height':pageHeight+'px'}">
		    <view style="background:#fff;padding:20upx;line-height:50upx">
				<view>{{storeManger}}</view>
				<view v-for="item in storeInfo.rows"> 
					<view >{{item.shopName}}-{{item.shopAdd}}</view>
				</view>
			</view>
		    <view class="trow">
		        <navigator  url="../pages/student/my/pwd/index?formpage=1" style="width:100%">
		          <view style="display: flex;align-items: center;">
		            <image :src="`${picUrl}userpwd.png`" class="rimg"></image>
		            <text>修改密码</text>
		          </view>
		        </navigator>
		          <view style="line-height:60rpx;flex:2;text-align:right;padding-right:20rpx">
		            <u-icon name="arrow-right" />
		          </view>
		    </view>
			
		   <!-- <view class="trow">
		        <navigator  url="subscribe_message/index" style="width:100%">
		          <view style="display: flex;align-items: center;">
		            <van-icon name="chat-o" size="20" color="#999"/>
		            <text>消息订阅({{storeInfo.subnu}})</text>
		          </view>
		        </navigator>
		          <view style="line-height:60rpx;flex:2;text-align:right;padding-right:20rpx">
		            <van-icon name="arrow" />
		          </view>
		    </view> -->
		  </view>
		  <view class="cdass">
		    <u-button class="outlogin" size="large" @click="outlogin">退出登录</u-button>
		  </view>
		  <!-- <van-dialog id="van-dialog" /> -->

	</view>
</template>

<script>
	import {
	 getShopIfoBytel
	} from '@/api/goods'
	export default{
		data(){
			return{
				 pagenum:0,
				pagesize:10,
				storeManger:'',
				list:[],
				storeInfo:{},
				todayNum:0,
				goodnum:0,
				daymoney:0,
				orderNum:0,
				userName:'',
				loginid:'',
				pagesize:10,
				pageHeight:uni.getSystemInfoSync().windowHeight
			}
		},
		created(){
			this.getStoreInfo()
		},
		methods:{
			getStoreInfo() {
				let _this = this
				uni.getStorage({
					key: 'userifo',
					success: function (res) {
						if(res.data){
							_this.storeManger = JSON.parse(res.data).nickName
							let params = {
								userName:JSON.parse(res.data).userName
							}
							
							getShopIfoBytel(params).catch(res => {
								_this.storeInfo = res.data
							})
						}
					}
				});
			},
			outlogin(){
				uni.clearStorage()
				uni.clearStorageSync()
			    uni.reLaunch({
					url: '/pages/login/index'
			    })
			}
		}
	}
</script>

<style scoped>
	.dpname{height:120rpx;line-height:120rpx;color:#333333;padding:10rpx;font-size:1.4rem;text-align:center;background-color:#ffffff; overflow:hidden;text-overflow:ellipsis; white-space:nowrap;}
	.frow{width:auto;height:80rpx;line-height:80rpx;display:flex;align-items: center;background-color: #ffffff;padding:0rpx 10rpx}
	.jyzname{flex:1;text-align: right;}
	.cdass{width:96%;position:fixed;bottom:180rpx;left:0;right:0;margin:auto}
	.srow{color:#666666;font-size:1rem;display:flex;height:80rpx;align-items: center;}
	.trow{width:100%;height:60rpx;line-height:60rpx;background:#ffffff;padding:10rpx;display:flex;margin:10rpx auto;align-items: center;}
	.rimg{width:40rpx;height:40rpx;padding-top:5rpx}
</style>
